# -*- coding:utf-8 -*-
import logging


# 日志
def print_logs():
    logs = logging.getLogger()
    logs.handlers.clear()
    handler = logging.StreamHandler()
    fmt = logging.Formatter('%(asctime)s - %(pathname)s[line:%(lineno)d] - %(levelname)s: %(message)s')
    handler.setFormatter(fmt)
    logs.addHandler(handler)
    logs.setLevel(logging.INFO)
    return logs


log = print_logs()
